/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tmp.ac.ui.setting;

import ac.uitls.propertiesOperation;
import tmp.ac.lib.tools.uiUtil;
import java.awt.ComponentOrientation;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.swing.JPanel;

/**
 *
 * @author ismail
 */
public class NewJInternalFrame2 extends javax.swing.JInternalFrame {

    propertiesOperation op = new propertiesOperation();
    uiUtil UIU = new uiUtil();

    public NewJInternalFrame2() {
        initComponents();



        UIU.updatepanelWords(jPanel2.getParent().getComponents());

    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButton1 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jToolBar1 = new javax.swing.JToolBar();
        jPanel2 = new javax.swing.JPanel();
        general_bt = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        user_bt = new javax.swing.JButton();
        user_bt1 = new javax.swing.JButton();
        user_bt2 = new javax.swing.JButton();
        cont_pn = new javax.swing.JPanel();

        jButton1.setText("jButton1");

        jButton3.setText("jButton3");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jToolBar1.setRollover(true);

        general_bt.setText("general_bt");
        general_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                general_btActionPerformed(evt);
            }
        });

        jButton7.setText("menuSetting_lb");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        user_bt.setText("users_bt");
        user_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                user_btActionPerformed(evt);
            }
        });

        user_bt1.setText("dbBackup_bt");
        user_bt1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                user_bt1ActionPerformed(evt);
            }
        });

        user_bt2.setText("dbInfo_bt");
        user_bt2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                user_bt2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(general_bt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(user_bt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(user_bt2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(user_bt1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(general_bt, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(user_bt, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(user_bt1, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(user_bt2, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)
                .addGap(30, 30, 30))
        );

        cont_pn.setBorder(new javax.swing.border.MatteBorder(null));

        javax.swing.GroupLayout cont_pnLayout = new javax.swing.GroupLayout(cont_pn);
        cont_pn.setLayout(cont_pnLayout);
        cont_pnLayout.setHorizontalGroup(
            cont_pnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 330, Short.MAX_VALUE)
        );
        cont_pnLayout.setVerticalGroup(
            cont_pnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(cont_pn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cont_pn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void general_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_general_btActionPerformed
        // TODO add your handling code here:
        UIU.openPanel(cont_pn, new genSetting());

    }//GEN-LAST:event_general_btActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // TODO add your handling code here:
        UIU.openPanel(cont_pn, new menuSetting());
    }//GEN-LAST:event_jButton7ActionPerformed

    private void user_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_user_btActionPerformed
        // TODO add your handling code here:
        UIU.openPanel(cont_pn, new usersSetting());
    }//GEN-LAST:event_user_btActionPerformed

    private void user_bt1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_user_bt1ActionPerformed
        // TODO add your handling code here:
        
         UIU.openPanel(cont_pn, new DBbackUp());
    }//GEN-LAST:event_user_bt1ActionPerformed

    private void user_bt2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_user_bt2ActionPerformed
        // TODO add your handling code here:
        
         UIU.openPanel(cont_pn, new DBInfo());
    }//GEN-LAST:event_user_bt2ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel cont_pn;
    private javax.swing.JButton general_bt;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JButton user_bt;
    private javax.swing.JButton user_bt1;
    private javax.swing.JButton user_bt2;
    // End of variables declaration//GEN-END:variables
}
